package com.ruoyi.system.service;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.system.domain.PurchaseOrder;

/**
 * 采购Service接口
 * 
 * @author 华馨悦
 * @date 2025-01-24
 */
public interface IPurchaseOrderService extends IService<PurchaseOrder>

{
    /**
     * 查询采购
     * 
     * @param id 采购主键
     * @return 采购
     */
    public PurchaseOrder selectPurchaseOrderById(Long id);

    /**
     * 查询采购列表
     * 
     * @param purchaseOrder 采购
     * @return 采购集合
     */
    public List<PurchaseOrder> selectPurchaseOrderList(PurchaseOrder purchaseOrder);

    /**
     * 新增采购
     * 
     * @param purchaseOrder 采购
     * @return 结果
     */
    public int insertPurchaseOrder(PurchaseOrder purchaseOrder);

    /**
     * 修改采购
     * 
     * @param purchaseOrder 采购
     * @return 结果
     */
    public int updatePurchaseOrder(PurchaseOrder purchaseOrder);

    /**
     * 批量删除采购
     * 
     * @param ids 需要删除的采购主键集合
     * @return 结果
     */
    public int deletePurchaseOrderByIds(String ids);

    public int softDeletePurchaseOrderByIds(String ids);

    /**
     * 删除采购信息
     * 
     * @param id 采购主键
     * @return 结果
     */
    public int deletePurchaseOrderById(Long id);
}
